package com.tms.addressmanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tms.addressmanagement.mapper.AddressmanagementMapper;
import com.tms.addressmanagement.domain.Addressmanagement;
import com.tms.addressmanagement.service.IAddressmanagementService;

/**
 * 地址管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-29
 */
@Service
public class AddressmanagementServiceImpl implements IAddressmanagementService 
{
    @Autowired
    private AddressmanagementMapper addressmanagementMapper;

    /**
     * 查询地址管理
     * 
     * @param id 地址管理主键
     * @return 地址管理
     */
    @Override
    public Addressmanagement selectAddressmanagementById(Long id)
    {
        return addressmanagementMapper.selectAddressmanagementById(id);
    }

    /**
     * 查询地址管理列表
     * 
     * @param addressmanagement 地址管理
     * @return 地址管理
     */
    @Override
    public List<Addressmanagement> selectAddressmanagementList(Addressmanagement addressmanagement)
    {
        return addressmanagementMapper.selectAddressmanagementList(addressmanagement);
    }

    /**
     * 新增地址管理
     * 
     * @param addressmanagement 地址管理
     * @return 结果
     */
    @Override
    public int insertAddressmanagement(Addressmanagement addressmanagement)
    {
        return addressmanagementMapper.insertAddressmanagement(addressmanagement);
    }

    /**
     * 修改地址管理
     * 
     * @param addressmanagement 地址管理
     * @return 结果
     */
    @Override
    public int updateAddressmanagement(Addressmanagement addressmanagement)
    {
        return addressmanagementMapper.updateAddressmanagement(addressmanagement);
    }

    /**
     * 批量删除地址管理
     * 
     * @param ids 需要删除的地址管理主键
     * @return 结果
     */
    @Override
    public int deleteAddressmanagementByIds(Long[] ids)
    {
        return addressmanagementMapper.deleteAddressmanagementByIds(ids);
    }

    /**
     * 删除地址管理信息
     * 
     * @param id 地址管理主键
     * @return 结果
     */
    @Override
    public int deleteAddressmanagementById(Long id)
    {
        return addressmanagementMapper.deleteAddressmanagementById(id);
    }
}
